package com.eagle.roomcrawler.interviewProblem;

/**
 * @author 林良炫
 * @Description: ${todo}
 * @date 2018/4/2  15:41
 */
public class Child extends  Father{

    private int  a ;

    {
        System.out.println("我是空Child {}");
    }

    static{
        System.out.println("我是Child的static代码块");
    }

    {
        a =1;
        System.out.println("Child {} ，给变量初始化 ，end  a = " +a);
    }


    public Child(){
        System.out.println("我是Child的构造方法");
    }

    public void childCommon(){
        System.out.println("我是child的普通方法");
    }

    public static void main(String[] args) {
        Child  child = new Child();
        child.childCommon();
    }
}
